package com.imooc.service;

import org.springframework.web.multipart.MultipartFile;

public interface FdfsService {

    /**
     * fdfs文件上传
     * @param file
     * @param fileExtName
     * @return
     */
    String uploadFdfs(MultipartFile file, String fileExtName) throws Exception;

    /**
     * oss文件上传
     * @param file
     * @param userId
     * @param fileExtName
     * @return
     * @throws Exception
     */
    String uploadOss(MultipartFile file, String userId, String fileExtName) throws Exception;

}
